package com.chinda.common.exception;

import com.chinda.common.utils.R;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Wang Chinda
 * @date 2021/6/5
 */
@RestController
@RequestMapping("/filter")
public class FilterExceptionHandler {

    @RequestMapping("/exception")
    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
    public R error() {
        return R.error();
    }
}
